//package com.kaifamiao.service.Impl;
//
//import com.kaifamiao.mapper.RoomMapper;
//import com.kaifamiao.model.RoomModel;
//import com.kaifamiao.service.RoomService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Propagation;
//import org.springframework.transaction.annotation.Transactional;
//
//@Service()
//@Transactional(propagation = Propagation.REQUIRED)
//public class RoomServiceImpl implements RoomService {
//
//    @Autowired
//    private RoomMapper mapper;
//    @Override
//    public int addRoom(RoomModel model) {
//        Integer id=model.getId();
//        String roomNo=model.getRoomno();
//        Integer beginNo=model.getBeginno();
//        Integer endNo=model.getEndno();
//        String tuPian=model.getTupian();
//        model.setId(id);
//        model.setRoomno(roomNo);
//        model.setBeginno(beginNo);
//        model.setEndno(endNo);
//        model.setTupian(tuPian);
//        return mapper.insertSelective(model);
//    }
//}
